const routes = [
  {
    //路由初始指向
    path: "/", 
    redirect: "/index" 
  },
  {
    // 移动端首页
    path: "/index", 
    name: "index",
    component: () => import("@/views/home/index.vue") 
  },
  {
    path: "/photo/:key", 
    name: "photo",
    component: () => import("@/views/exhibition/photo.vue") 
  },
  {
    path: "/video/:key", 
    name: "video",
    component: () => import("@/views/exhibition/video.vue") 
  },
  {
    path: "/frame/:key", 
    name: "frame",
    component: () => import("@/views/exhibition/frame.vue") 
  },
  {
    path: "/message", 
    name: "message",
    component: () => import("@/views/exhibition/message.vue") 
  },
  {
    path: "/askingList", 
    name: "askingList",
    component: () => import("@/views/exhibition/asking/askingList.vue") 
  },
  {
    path: "/askingDetails/:id/:type", 
    name: "askingDetails",
    component: () => import("@/views/exhibition/asking/askingDetails.vue") 
  },
  {
    path: "/:path(.*)+",
    name: "404",
    component: () => import('@/views/404.vue')
  },
];
 
export default routes;